package com.example.liteflow.app;

import com.alibaba.fastjson.JSON;
import com.example.liteflow.dto.AppFlowDto;
import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeComponent;
import lombok.extern.slf4j.Slf4j;

/**
 * @author wwl
 * @version 1.0
 * @date 2024/2/22 15:40
 * @description:
 */
@Slf4j
@LiteflowComponent(value = "grantScore")
public class GrantScore extends NodeComponent {
    @Override
    public void process() throws Exception{
        log.info(" this.getRequestData()",JSON.toJSONString(this.getRequestData()) );
        log.info("process 查询到携带数据：{}",JSON.toJSONString(this.getContextBean(AppFlowDto.class)));
    }

    /*public boolean isAccess(){
        AppFlowContext context = this.getContextBean(AppFlowContext.class);
        log.info("判断是否处理该节点 ctx {}",JSON.toJSONString(context));
        return Boolean.TRUE;
    }*/
}
